/**
 * Created by safe on 2017-03-28.
 */

import java.util.HashMap;

/**
 * 结点类
 *
 */
class Node {
    // 到邻接顶点总带宽
    public HashMap<Integer, Integer> bandwidth  = null;
    // 到邻接顶点花费
    public HashMap<Integer, Integer> cost  = null;

    public HashMap<Integer, Integer> getBandwidth() {
        return bandwidth;
    }

    public HashMap<Integer, Integer> getCost() {
        return cost;
    }

    public void addEdge(int end, int edge, int cost) {
        if (this.bandwidth  == null) {
            this.bandwidth  = new HashMap<Integer, Integer>();

        }
        if (this.cost  == null) {
            this.cost  = new HashMap<Integer, Integer>();

        }
        this.bandwidth .put(end, edge);
        this.cost .put(end, cost);
    }
}
